copy

suspend fun copy(dest: Path, recursive: Boolean = true, force: Boolean = true)

Copies this file or directory todest. Never copies into, for that use copyInto. Note that this differs from cp which will sometimes copy into.

See also

Parameters

recursive

whether to recursively copy children

force

whether to overwrite files in dest. A false value is sometimes ignored, do not rely on.

Sources

js source
Link copied to clipboard